//
//  UIViewController+AlerView.h
//  Coach_HaiGeEr
//
//  Created by liuchen on 2018/11/8.
//  Copyright © 2018年 海格尔. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"
typedef void(^completionBlock)(void);

@interface UIViewController (AlerView)

-(void)showSuccess:(NSString *)success;
-(void)showError:(NSString *)error;
-(void)showMessage:(NSString *)message;
-(void)showMessage:(NSString *)message afterDelay:(NSTimeInterval)timer completion:(completionBlock)completion;
-(void)showWaiting;
-(void)showLoading;
-(void)showLoadingWithMessage:(NSString *)message;
-(void)showSaving;
-(void)hideHUD;

- (void)showGifToView;

@end
